package hibernateUtil;

import java.util.ArrayList;

import org.hibernate.Session;

import MemoryDB.YuanTable;
import db.GenericHibernateDAO;
import db.HibernateUtil;

public class MaplevelDao extends GenericHibernateDAO<Maplevel,Integer>{
	
	public YuanTable GetMaplevelDaoToTable()
	{
		return GetTable("from Maplevel");
	}

	public ArrayList<Integer> GetMaplevelIDList()
	{
		return GetList("select m.MapID from Maplevel as m");
	}
	
	@Override
	protected Session getSession()
	{
		// TODO Auto-generated method stub
		return HibernateUtil.getDarkSword2SessionFactory().getCurrentSession();
	}
}
